// components/calendar/index.js
let View = require('behavior-view');

Component({
    externalClasses: ['ex-class'],
    behaviors: [
        View
    ],
    properties: {
        displayMonthNum: {
            type: Number
        },
        displayTime: {
            type: String
        },
        selectedDate: {
            type: String
        },
        dataList: {
            type: Object
        }
    },
    data: {
        weekDayArr: ['日', '一', '二', '三', '四', '五', '六'],
        calendarList: [],
    },
    methods: {
        onDayTap: function (e) {
            this.triggerEvent('onDayTap', e.currentTarget.dataset)
        }
    }
})